//
//  ASExtendedTV_Extras.m
//  funkydog
//
//  Created by Saptarshi Guha on 2/2/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "ASExtendedTV_Extras.h"

#import <objc/objc.h>
#import <objc/objc-runtime.h>
#import <objc/objc-class.h>

@implementation ASExtendedTableView(Extras)
+(void)load{
	if (self == [ASExtendedTableView class]){
		//Method originalMethod ,replacedMethod;
		//originalMethod  = class_getInstanceMethod(self, @selector(showTableColumnsFromArray:allColumns:));
		//replacedMethod  = class_getInstanceMethod(self, @selector(myshowTableColumnsFromArray:allColumns:));
		//method_exchangeImplementations(originalMethod, replacedMethod);
		//originalMethod  = class_getInstanceMethod(self, @selector(getPersistentTableColumnsAsArray));
		//replacedMethod  = class_getInstanceMethod(self, @selector(mygetPersistentTableColumnsAsArray));
		//method_exchangeImplementations(originalMethod, replacedMethod);
		}
}
- (void)myshowTableColumnsFromArray:(id)fp8 allColumns:(id)fp12{
	NSMutableArray *a=[NSMutableArray arrayWithArray:fp12];
	NSTableColumn *p=[[NSTableColumn alloc] initWithIdentifier:@"23"];
	[a addObject:p];
	NSMutableArray *a2=[NSMutableArray arrayWithArray:fp8];
	[a2 insertObject:@"23" atIndex:0];
	[a2 insertObject:[NSNumber numberWithInteger:30] atIndex:1];
	[self myshowTableColumnsFromArray:a2 allColumns:a];
	
	
}
-(id)mygetPersistentTableColumnsAsArray{
	id x=[self mygetPersistentTableColumnsAsArray];
	//NSLog(@"returning %@",x);
	return x;
}
@end
